package com.lcj.crawler;

import com.geccocrawler.gecco.annotation.Gecco;
import com.geccocrawler.gecco.pipeline.Pipeline;
import com.geccocrawler.gecco.request.HttpGetRequest;
import com.geccocrawler.gecco.request.HttpRequest;
import com.geccocrawler.gecco.scheduler.DeriveSchedulerContext;
import com.geccocrawler.gecco.spider.HtmlBean;
import org.springframework.stereotype.Service;

@Service
@Gecco(matchUrl = "https://www.zptong.com/plus/ajax_user.php", pipelines = { "zptAjaxPage" })
public class ZptAjaxPage implements HtmlBean, Pipeline<ZptAjaxPage> {

    @Override
    public void process(ZptAjaxPage zptAjaxPage) {
        HttpRequest sub = new HttpGetRequest("https://www.zptong.com/jobs/jobs-list.php?page=114");
//        HttpRequest sub = new HttpGetRequest("https://www.zptong.com/plus/ajax_contact.php?id=98729&time="+System.currentTimeMillis()+"&act=jobs_contact");
//        HttpRequest sub = new HttpGetRequest("https://www.zptong.com/jobs/jobs-show-98707-.htm");
        DeriveSchedulerContext.into(sub);
    }
}
